home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1999 April: Mac OS SDK / Dev.CD Apr 99 SDK1.toast / Development Kits / Mac OS USB DDK / Examples / USBSampleStorageDriver / USBSampleStorageDriver.make < prev    next >
Encoding:
Text File  |  1999-01-12  |  3.4 KB  |  145 lines  |  [TEXT/MPS ]

  1. #
  2. #    File:        USBSampleStorageDriver.make
  3. #
  4. #    Contains:    A sample USB Storage Class driver
  5. #
  6. #    Version:        1.1
  7. #
  8. #    Copyright:    © 1998-1999 by Apple Computer, Inc., all rights reserved.
  9. #
  10. #    File Ownership:
  11. #
  12. #        DRI:                Craig Keithley
  13. #
  14. #        Other Contact:        xxx put other contact here xxx
  15. #
  16. #        Technology:            USB Drivers
  17. #
  18. #    Writers:
  19. #
  20. #        (CJK)    Craig Keithley
  21. #
  22. #    Change History (most recent first):
  23. #
  24. #      <USB2>     1/11/99    CJK        update to use sources from 1.1f3 DDK
  25. #
  26.  
  27. MAKEFILE     = USBSampleStorageDriver.make
  28. •MondoBuild• = {MAKEFILE}  # Make blank to avoid rebuilds when makefile is modified
  29.  
  30. #
  31. #    symbol options
  32. #
  33. Sym•PPC      =  -sym full
  34.  
  35. #
  36. #    objects directory
  37. #
  38. ObjDir•PPC   = :::Objects:
  39.  
  40. #
  41. #    Targets directory
  42. #
  43. TargetDir     = :::Targets:
  44.  
  45. #
  46. # Headers and Libraries directory
  47. #
  48. LibrariesDir = :::Libraries:
  49.  
  50. #
  51. # Sample Drivers Shared Headers directory
  52. #
  53. SharedHeadersDir = :
  54.  
  55. #
  56. #    compiler options
  57. #
  58. PPCCOptions  = {Sym•PPC} -d DEBUG=0 -align mac68k -i {SharedHeadersDir}
  59.         
  60. #
  61. #    PPC objects
  62. #
  63. Objects•PPC  =                                                                ∂
  64.         "{ObjDir•PPC}SampleStorageDriver.c.x"                        ∂
  65.         "{ObjDir•PPC}SampleStorageDriverAPI.c.x"                    ∂
  66.         "{ObjDir•PPC}SampleStorageHeader.c.x"
  67.  
  68.  
  69. #
  70. #    Build Target
  71. #
  72. StorageDriverTarget    = {TargetDir}USBSampleStorageDriver
  73.         
  74.         
  75. USBSampleStorageDriver ƒƒ {StorageDriverTarget}
  76.  
  77.  
  78. #
  79. #    Build Resource fork of the driver
  80. #
  81. {StorageDriverTarget}    ƒƒ    ∂
  82.                         "{SharedHeadersDir}SampleStorageVersion.h"    ∂
  83.                         "SampleStorageDriver.r"                            ∂
  84.                         {•MondoBuild•}
  85.     Rez                                                                        ∂
  86.         -i "{RIncludes}"                                                    ∂
  87.         -i "{SharedHeadersDir}"                                            ∂
  88.         "{RIncludes}MacTypes.r"                                                ∂
  89.         "SampleStorageDriver.r"                                            ∂
  90.         -a                                                                        ∂
  91.         -o {Targ}
  92.  
  93. #
  94. #    Storage class driver is compiled with PPC compiler
  95. #        and added into the USBSampleStorageDriver file
  96. #
  97. {StorageDriverTarget} ƒƒ                                                 ∂
  98.                 {•MondoBuild•}                                             ∂
  99.                 {Objects•PPC}                                                ∂
  100.                 "SampleStorageDriver.exp"
  101.     PPCLink                                                                     ∂
  102.      -SYM big                                                                ∂
  103.      -map "{ObjDir•PPC}USBSampleStorageDriver.map    "            ∂
  104.         -t 'ndrv'                                                            ∂
  105.         -c 'usbd'                                                            ∂
  106.         -o {StorageDriverTarget} {Sym•PPC}                            ∂
  107.         {Objects•PPC}                                                         ∂
  108.         -xm sharedlibrary                                                    ∂
  109.         -share context                                                        ∂
  110.         -@export "SampleStorageDriver.exp"                            ∂
  111.         "{LibrariesDir}USBServicesLib"                                 ∂
  112.         "{SharedLibraries}InterfaceLib"                                 ∂
  113.         "{SharedLibraries}NameRegistryLib"                            ∂
  114.         "{SharedLibraries}DriverLoaderLib"                            ∂
  115.         "{SharedLibraries}DriverServicesLib"                         ∂
  116.         "{SharedLibraries}PCILib"                                        ∂
  117.         "{SharedLibraries}StdCLib"                                        ∂
  118.         "{PPCLibraries}PPCCRuntime.o"
  119.  
  120. #
  121. #    Storage class driver
  122. #
  123. "{ObjDir•PPC}SampleStorageDriver.c.x" ƒ            {•MondoBuild•}                                    ∂
  124.                                                             "SampleStorageDriver.c"                         ∂
  125.                                                             "{LibrariesDir}USB.h"                            ∂
  126.                                                             "SampleStorageDriver.h"
  127.     {PPCC} SampleStorageDriver.c -o {Targ} {PPCCOptions}
  128.  
  129. "{ObjDir•PPC}SampleStorageDriverAPI.c.x" ƒ        {•MondoBuild•}                                    ∂
  130.                                                             SampleStorageDriverAPI.c                         ∂
  131.                                                             "{LibrariesDir}USB.h"                            ∂
  132.                                                    "{SharedHeadersDir}SampleStorageDriverAPI.h"
  133.     {PPCC} SampleStorageDriverAPI.c -o {Targ} {PPCCOptions}
  134.  
  135. #
  136. #    Storage class driver USB interfaces
  137. #
  138. "{ObjDir•PPC}SampleStorageHeader.c.x" ƒ        {•MondoBuild•}                                        ∂
  139.                                                             SampleStorageHeader.c                             ∂
  140.                                                              "{LibrariesDir}USB.h"                            ∂
  141.                                                  "SampleStorageDriver.h"
  142.     {PPCC} SampleStorageHeader.c -o {Targ} {PPCCOptions}
  143.  
  144. # eof
  145.